home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
qbbs
/
fixra100.zip
/
FIXRA100.C
next >
Wrap
Text File
|
1991-02-19
|
567b
|
28 lines
#include "stdio.h"
#include "io.h"
#include "fcntl.h"
char *file = "RA.OVR";
long int offset[] = { 9352L, 0L };
char *new[] = { "\x25\x0A\x0DPlease press Enter now to continue.", NULL };
int length[] = { 38, 0 };
int h, p;
char *initmsg = "Fixing RemoteAccess 1.00";
char *donemsg = "Done!\n";
void main()
{ p = 0;
printf(initmsg);
h = open(file,O_RDWR|O_BINARY);
while (length[p] != 0)
{ printf(".");
lseek(h,offset[p],SEEK_SET);
printf(".");
write(h,new[p],length[p]);
printf(".");
p++;
}
close(h);
printf(donemsg);
}